package com.atguigu.gulimall.es.service;

import com.atguigu.gulimall.es.entity.BlogDoc;
import com.atguigu.gulimall.es.repository.BlogRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BlogServiceImpl{

    @Autowired
    private BlogRepository blogRepository;


    public void createBlog(BlogDoc blogBean) {
        blogRepository.save(blogBean);
    }
}
